﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="YearCalendar.ascx.cs"
    Inherits="Controls_YearCalendar" %>
<script runat="server">
    protected void lv_DataBinding(object sender, EventArgs e)
    {
        lv.DataSource = MonthData;
    }
</script>
<div style="text-align: left;">
    <ol style="float: left">
        <asp:ListView ID="lv" runat="server" OnDataBinding="lv_DataBinding" OnItemDataBound="lv_ItemDataBound">
            <ItemTemplate>
                <li style="float: left; list-style: none; margin: 2px">
                    <My:MyCalendar ID="cl" runat="server" ShowNextPrevMonth="false" ShowDayHeader="true" OnSelectionChanged="cl_SelectionChanged"
                         OnDayRender="cl_DayRender"
                        CssClass="YearCalendar" VisibleDate='<%# DateTime.Parse(string.Format(@"{0}/{1}/1", YY, Container.DataItem)) %>'>
                        <OtherMonthDayStyle ForeColor="LightGray" />
                    </My:MyCalendar>
                </li>
            </ItemTemplate>
        </asp:ListView>
    </ol>
</div>
